<template>
  <div>
      <button @click="post_role">添加</button>
  </div>
</template>

<script>
import axios from '../../http/axios'
export default {
data () {
  return {
    userid:localStorage.getItem('userid'),
    ids:[2,5,7],   //角色id
    rolelist:[]
  }
},
methods: {
  post_role(){
    axios('/norole?userid='+this.userid,'post',{'ids':this.ids}).then(res=>{
      console.log(res)
    })
  }
},
mounted () {

}
}
</script>

<style>

</style>